package com.dingreading.cloud.soms.service.impl;

import com.dingreading.cloud.soms.entity.StoreRole;
import com.dingreading.cloud.soms.entity.table.StoreRoleTableDef;
import com.dingreading.cloud.soms.mapper.StoreRoleMapper;
import com.dingreading.cloud.soms.service.StoreRoleService;
import org.springframework.stereotype.Service;

/**
 * 服务层实现。
 *
 * @author Administrator
 * @since 2024-09-13
 */
@Service
public class StoreRoleServiceImpl extends BaseServiceImpl<StoreRoleMapper, StoreRole, StoreRoleTableDef> implements StoreRoleService {

    @Override
    protected StoreRoleTableDef getTable() {
        return StoreRoleTableDef.storeRole;
    }

    @Override
    public StoreRole getByIdentify(String identify) {
        return getMapper().selectOneByCondition(table.identify.eq(identify));
    }
}
